import * as THREE from "three";

// 创建场景
export const scene = new THREE.Scene();
// 创建相机
export const camera = new THREE.PerspectiveCamera(
  75,
  window.innerWidth / window.innerHeight,
  0.1,
  1000
);
scene.add(camera);
// 创建渲染器 
export const renderer = new THREE.WebGLRenderer({
  antialias: true
});
// 设置渲染器大小
renderer.setSize(window.innerWidth, window.innerHeight);
// 把渲染的canvas内容添加到body
document.body.appendChild(renderer.domElement);